//
//  UIButton+Extension.h
//  爱车生活
//
//  Created by Yiwen23 on 2017/6/30.
//  Copyright © 2017年 Fw. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIButton (Extension)
//! 纯文字
+(UIButton *)createOnlyTitleBtnFrame:(CGRect)frame title:(NSString *)title titleColor:(UIColor *)textColor titleFont:(UIFont *)textfont target:(id)target action:(SEL)action;
//!文字 + 背景图
+(UIButton *)createBtnWithTitleAndBgImgFrame:(CGRect)frame title:(NSString *)title titleColor:(UIColor *)textColor titleFont:(UIFont *)textfont bgImageName:(NSString *)bgImageName target:(id)target action:(SEL)action;
//!纯图片
+(UIButton *)createBtnWithOnlyImageFrame:(CGRect)frame norBGImage:(UIImage *)norImage seleBGimage:(UIImage *)selImage target:(id)target action:(SEL)action;
////!图左文右
//+(UIButton *)createBtnWithImgLeftAndTitleRightFrame:(CGRect)frame norTitle:(NSString *)norTitle hTitle:(NSString *)hTitle font:(UIFont *)font norImage:(UIImage *)norImage hImage:(UIImage *)hImage imageEdge:(UIEdgeInsets)imageEdge titleEdge:(UIEdgeInsets)titleEdge target:(id)target action:(SEL)action;
//!图左文右
+(UIButton *)createBtnWithImgLeftAndTitleRightFrame:(CGRect)frame kMargin:(CGFloat)margin title:(NSString *)title titleFont:(CGFloat)font titleColor:(UIColor *)titleColor Image:(NSString *)Image ImageWidth:(CGFloat)imageW target:(id)target action:(SEL)action;
//!图右文左
+(UIButton *)createBtnWithTitleLeftAndImgRightFrame:(CGRect)frame kMargin:(CGFloat)margin title:(NSString *)title titleFont:(CGFloat)font titleColor:(UIColor *)titleColor Image:(NSString *)Image ImageWidth:(CGFloat)imageW target:(id)target action:(SEL)action;
//!图上文下
+(UIButton *)createBtnWithImgUpAndTitleDownFrame:(CGRect)frame kMargin:(CGFloat)margin title:(NSString *)title titleFont:(CGFloat)font titleColor:(UIColor *)titleColor Image:(NSString *)Image ImageWidth:(CGFloat)imageW target:(id)target action:(SEL)action;



/* 
 防止button重复点击，设置间隔
 */
@property (nonatomic, assign) NSTimeInterval mm_acceptEventInterval;

@end
